package com.anstudio.app.lhasa.common.enums;

public enum ResponseEnum {
    RESP_OK(0, "OK"),
    RESP_UNKNOWN_ERROR(-1, ""),
    RESP_EXCEPTION(-2, ""),
    RESP_INVALID_PARAM(-3, ""),
    RESP_NOT_FOUND(-4, ""),
    RESP_TOKEN_INVALID(-5, ""),
    RESP_TIME_INVALID(-6, ""),
    RESP_METHOD_NOT_SUPPORT(-7, "");

    int code;
    String message;

    ResponseEnum(int code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
